{template 'header-company'}

<!--当前位置-->
<div class="location layout960">
	当前位置: <a href="{SITE_URL}">首页</a>&nbsp;»&nbsp; <a href="{url('company/index')}">企业库</a>
</div>
    <!--当前位置 end-->
    <!--主体部分-->
    <div class="cooper-hd layout960 fn-clear">
    	<h2 class="fn-left">企业库</h2>
	    <a style="float:right;" class="company-edit" href="{SITE_URL}company/create.php">加入企业库</a>
    </div>
    <div class="main-body border layout960">
        <!--筛选 start-->
        <h4>所有类目</h4>
        <!--cat-property start-->
        <div class="cat-property">
	        {php $oldModuleid = $moduleid}
	        {php $moduleid = 25}
            {template 'cat_cats', 'filter'}
	        {php $moduleid = $oldModuleid}
            {template 'cat_area', 'filter'}
        </div>
        <!--cat-property end-->
        {php $oldModuleid = $moduleid}
        {php $moduleid = 25}
	    {if $catid}
	    {template 'sel_cat', 'filter'}
	    {/if}
        {php $moduleid = $oldModuleid}
	    {if $areaid}
	    {template 'sel_area', 'filter'}
	    {/if}
        <!--筛选 end-->

        <div class="filter fn-clear">
            <div class="filter-hd fn-clear">
                <h3 class="fn-left">所有信息</h3>
                <div class="page-top fn-right fn-clear"></div>
                <form class="fn-right" action="?">
                    <label for="keyword">关键字：</label>
                    <input id="keyword" class="search-input" type="text" name="kw" value="{$kw}">
                    <button type="submit">确定</button>
                </form>
            </div>
        </div>
        <!--企业列表 start-->



        <div class="layout-inner mt10 fn-clear">
            <div class="layout-inner-1of2 fn-left">
                <ul class="result-list">
	                {loop $companyList $key $val}

                    <li class="fn-clear">
	                    <a href="{SITE_URL}company/show.php?id={$val[did]}" target="_blank" title="">
		                {if $val[company_thumb]}
		                    <img src="{$val[company_thumb]}" width="100" height="100">
		                {else}
                            <img src="{Picture::thumb($val[company_thumb],102,102)}" width="100" height="100">
                        {/if}
	                    </a>
		                <div class="result-desc fn-left">
                            <h3><a href="{SITE_URL}company/show.php?id={$val[did]}" target="_blank" title="">{$val[title]}</a></h3>
                            <p class="text-ellipsis">{$val[summary]}</p>
                            <p class="address">[ {area_pos($val[company_areaid])}]</p>
                        </div>
                    </li>
					{/loop}
                </ul>
	            {if !$companyList}
	            <div class="layout960 fn-clear">
		            <div style="padding:30px 300px 200px 30px;line-height:220%;">
			            &nbsp;<strong class="px14">抱歉，没有找到相关的内容。 <br />欢迎您<a href="{SITE_URL}company/create.php{if $kw}?title={$kw}{/if}">创建新企业</a></strong><br/>
			            &nbsp;<strong>建议您：</strong><br/>
			            &nbsp;&nbsp;&bull; 看看输入的文字是否有误<br/>
			            &nbsp;&nbsp;&bull; 去掉可能不必要的字词，如“的”、“什么”等<br/>
			            &nbsp;&nbsp;&bull; 调整更确切的关键词或搜索条件<br/>
		            </div>
	            </div>
	            {/if}
	            {php $total = $items}
	            {template 'pager', 'inc'}
            </div>
        </div>
        <!--企业列表 end-->
    </div>
    <!--主体部分end-->
<!--主体部分 end-->
{template 'footer'}